package com.sise.wangzhan;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

import java.util.Scanner;

@SpringBootApplication
@EnableEurekaClient
public class SpringCloudLab04EurekaRibbonProviderApplication {

    public static void main(String[] args) {
//        SpringApplication.run(SpringCloudLab04EurekaRibbonProviderApplication.class, args);

        Scanner scan = new Scanner(System.in);
        System.out.println("请输入端口号：");
        String port = scan.nextLine();

        new SpringApplicationBuilder(SpringCloudLab04EurekaRibbonProviderApplication.class)
                .properties("server.port="+port).run(args);


    }

}
